#include <cmath>
#include "structs.h"
#include "gmp.h"

bool point::operator !=(const point& p) const
{
    return (!((*this) == p));
}

bool point::operator ==(const point& p) const
{
    return (x == p.x) && (y == p.y);
}

bool point::operator <(const point& a) const
{
    return ((x < a.x) || ((x == a.x) && (y < a.y)));
}

bool point::operator <=(const point& a) const
{
    return ((*this < a) || (*this == a));
}